<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<base href="<%=basePath%>" >
</head>
<body >
	<script type="text/javascript" src="<%=basePath%>scripts/system/mail/write.js"></script>	
	
	<div class="easyui-layout" fit="true" style="background-color: #FFFFFF">
	
		<div region="north" border="false" class="borsty-b">
			<div id="mailPanel">
				<a id="sendMailBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="sendMail();">发送</a>
				<a id="closeWriteMailBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="curTabClose();">关闭</a>			
			</div>
		</div>
		
		<div region="center" border="false">
			<table border="0" width="100%" align="center" cellpadding="5px" cellspacing="5px" style="background-color: #ffffff">
				<tr>
					<td style="background-color: #eff5fb; width: 90px; padding-left: 15px">
						主　题：
					</td>
					<td style="background-color: #eff5fb; text-align: left; padding-left: 15px">
						<input id="mailTitle" name="mailTitle" type="text" style="width:350px;" />
					</td>
				</tr>
				<tr>
					<td style="background-color: #eff5fb; width: 90px; padding-left: 15px">
						收件人：
					</td>
					<td style="background-color: #eff5fb; text-align: left; padding-left: 15px"">
						<input id="mailReceiveNames" name="mailReceiveNames" type="text" style="width:350px;" readonly="readonly" />
						<input id="mailReceiveIds" name="mailReceiveIds" type="hidden">
						<a id="addressBookBtn" href="javascript:void(0)" class="easyui-linkbutton" onclick="openAddressBookWindow();">通讯录</a>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="background-color: #eff5fb;">
						<textarea id="mailContent" name="mailContent"></textarea>
					</td>
				</tr>
			</table>
		</div>
	</div>


	<div id="addressBookWindow">
		<div id="mailPanel" class="borsty-b">
			<a id="abOkBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="addressBookOk();">确定</a>
			<a id="abCloseBtn" href="javascript:void(0);" class="easyui-linkbutton" onclick="closeAddressBookWindow();">关闭</a>
		</div>
		<div id="addressBookTree" fit="true"></div>
	</div>
	<input type="hidden" id="mailType" name="mailType" value="${type}">
</body>
</html>